#pragma once

#include <QWidget>
#include <QMenu>
#include "ui_cpictopdfwgt.h"
#include "cpictopdfcontrol.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CPicToPdfWgtClass; };
QT_END_NAMESPACE

class CPicToPdfWgt : public QWidget
{
	Q_OBJECT

public:
	CPicToPdfWgt(QWidget *parent = nullptr);
	~CPicToPdfWgt();

private:
	void initstyle();
	void initConnect();
	void initMenu();
	void toPdfBtnCliekedSlt();
	void addPicBtnClickedSlt();
	QStringList getTabWgtPicPath();
	void deleteSelectedRow();
	void onShowMenu(QPoint pos);

private:
	Ui::CPicToPdfWgtClass *ui;
	CPicToPdfControl* _picToPdfControl;
	QMenu* _menu;
};
